<div class="view-header clearfix">
    <div class="head-icon plus" title="添加用户" ng-click="addUser()">
        <i class="fa fa-user-plus"></i>添加用户
    </div>
    <div class="head-icon refresh" ng-click="syn_users_to_rbac()" title="同步用户到权限">
        <i class="fa fa-refresh"></i>同步用户权限
    </div>
</div>
<div class="view-content">
    <div class="view-left col-sm-6">
        <div class="view-left-search">
            <i class="fa fa-search"></i>
            <input type="text" placeholder='用户' ng-model="user_name_filter">
        </div>
        <div class="view-left-block">
            <div class="view-left-item t-head clearfix">
                <div class="double"><i class="fa fa-user"></i>用户</div>
                <div class="double"><i class="fa fa-car"></i>门店</div>
                <div class="icon"><i class="fa fa-cog"></i>操作</div>
            </div>
            <div class="item-scroll-box">
                <div class="view-left-item t-body clearfix"
                     ng-repeat="user in data |orderBy:['name'] | filter:user_name_filter"
                     ng-click='user_list(user,data)'
                     ng-class="{true: 'active', false: ''}[user.isActive]">
                    <div title="{{user.name}}" class="double elip" ng-bind="user.name"></div>
                    <div title="{{user.shop_name}}" class="double elip" ng-bind="user.shop_name"></div>
                    <div title="删除" class="icon fa fa-user-times delete" ng-click="user_del_submit(user,$event);"></div>
                </div>
            </div>

        </div>
    </div>
    <div class="view-right col-sm-6 col-sm-offset-6">
        <div class="view-right-block">
            <div ng-show="isEdit" class="view-right-title">
                修改用户<span class='color-show' ng-bind="users_user.name?'&nbsp'+users_user.name+'&nbsp':''"></span>信息
            </div>
            <div ng-show="!isEdit" class="view-right-title">
                添加用户
            </div>
            <!-- 修改/新增用户 -->
            <div class="new-content">
                <div class="new-item">
                    <span class="span">账号</span>
                    <input title="{{users_user.uid}}" class="input input-uid" ng-class="{true: 'edit', false: ''}[isEdit]" type="text" ng-model="users_user.uid"/>
                </div>
                <div class="new-item">
                    <span class="span">姓名</span>
                    <input title="{{users_user.name}}" class="input" type="text" ng-model="users_user.name">
                </div>
                <div class="new-item">
                    <span class="span">密码</span>
                    <input title="{{users_user.password}}" class="input" type="text" ng-model="users_user.password">
                </div>
                <div class="new-item">
                    <span class="span">门店</span>
                    <select chosen
                            no-results-text="'没有匹配'"
                            width="'200px'"
                            data-placeholder="选择门店"
                            ng-model="users_user.shop_id"
                            ng-options="shop.id as shop.name for shop in shop_all_data">
                        <option value=""></option>
                    </select>
                </div>
                <div class="new-item">
                    <span class="span">电话</span>
                    <input title="{{users_user.tel}}" class="input" type="text" ng-model="users_user.tel">
                </div>

                <div class="new-item">
                    <span class="span">邮箱</span>
                    <input title="{{users_user.email}}" class="input" type="text" ng-model="users_user.email">
                </div>
                <div class="new-item">
                    <span class="span">性别</span>
                    <label for="male" class="sex-radio">
                        男<i></i>
                        <input ng-hide="true" type="radio" name="sex" value="0" id="male" />
                    </label>
                    <label for="female" class="sex-radio">
                        女<i></i>
                        <input ng-hide="true" type="radio" name="sex" value="1" id="female" />
                    </label>
                </div>
                <div class="new-item">
                    <button class="sm-btn sm-btn-green sm-btn-m save" ng-click="user_revise_submit()">保&nbsp&nbsp存</button>
                </div>

            </div>
        </div>
    </div>
</div>